
public class Position { //la position sur la grille
	private int ligne;
	private int cologne;
	
	public Position (int ligne,int col){
		this.ligne=ligne;
		this.cologne=col;
	}
	
	public boolean equals(Object obj){
	   if(obj instanceof Position) {
		    Position other = (Position) obj;
		    return this.ligne == other.getLigne() && this.cologne == other.getCol();
	   }
	   else {
	    	return false;
	   }
	 }
	
	 public int getLigne(){
	        return this.ligne;
    }
	    
	public int getCol(){
	        return this.cologne;
    }
	public String toString(){
		return "( "+ligne+", "+cologne+" )";
	}
}



